import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useMedicineStore = defineStore(
  'cp-medicine',
  () => {
    const choosedAddressId = ref('')
    const chooseAddress = (id: string) => {
      choosedAddressId.value = id
    }
    return {
      choosedAddressId,
      chooseAddress,
    }
  },
  {
    persist: true,
  },
)
